package com.chenchen.subject.application.convert;

import com.chenchen.subject.application.dto.SubjectInfoDto;
import com.chenchen.subject.domain.entity.SubjectInfoBo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 题目信息dto转换器
 *
 * @author: ChickenWing
 * @date: 2023/10/8
 */
@Mapper
public interface SubjectInfoDtoConverter {

    SubjectInfoDtoConverter INSTANCE = Mappers.getMapper(SubjectInfoDtoConverter.class);

    SubjectInfoBo convertDtoToBo(SubjectInfoDto subjectInfoDto);

    SubjectInfoDto convertBoToDto(SubjectInfoBo subjectInfoBo);

    List<SubjectInfoDto> convertBoToDtoList(List<SubjectInfoBo> subjectInfoBo);

}
